#ifndef SERVERTHREAD_H
#define SERVERTHREAD_H

#include <QRunnable>
#include <QThreadPool>
#include <QTcpSocket>
#include <QTime>
#include "sumservice.h"
#include "service.h"

class ServerThread : public QRunnable
{
public:
    ServerThread(int socketDescriptor, Service *service, int waitForAnswer);

protected:
    void run();

private:
    int socketDescriptor;
    Service *service;
    int waitForAnswer;
    quint16 nextBlockSize;
};

#endif // SERVERTHREAD_H
